home *** CD-ROM | disk | FTP | other *** search
Text File | 2002-08-01 | 39.4 KB | 1,153 lines |
- #-------------------------------------------------------------------------------
- #
- # /nomads/scripts/input.tcl
- #
- # THE NOMADS INPUT MAPPING
- #
- # Wird vom Standard-Demo ben÷tigt und implementiert
- # die Tastatur-Belegung. Dient dem Prototyping des
- # gesamten Input-Handlings.
- #
- # Input-Event-Mapping
- # Die Liste der auf dem aktuellen System verfuegbaren
- # Input-Devices findet man unter /sys/share/input,
- # die Liste die Game-Events unter /sys/share/gameevents.
- #
- # created: 05-May-99
- # upd.: 23-Jun-99
- # 30-Jul-99 floh auf Inputserver umgestellt
- # 05-Nov-99 bernd Tasten fⁿr neue Befehle und so
- # 24-Nov-99 bernd angefangen das ganze Input Mapping aufzurΣumen
- # Jeder "ZUSTAND" bekommt ein komplettes eigenes
- # Input Mapping.
- # 26-Nov-99 bernd Weiter am Input Mapping
- # floh + .beginmap/.endmap
- # 29-Nov-99 bernd Merge Conflicte aufgeloest
- # 30-Nov-99 bernd Weiter am InputMapping
- # 20-Dec-99 floh + Inputmapping fuer Konsole toggeln
- # + neues Input-Mapping fuer Input-Recording
- # 22-Dec-99 floh + korrekte Input-Modifier angehaengt (.down...)
- # 29-Dec-99 bernd Diverse Sachen fⁿrs Rausgeben ausgeklammert
- # 03-Jan-2000 bernd Weiter am Input Mapping (Longpressed etc.)
- # 14-Jan-2000 Tuning. GAMEPAD-Belegung.
- # 20-Jan-2000 bernd Ich mu▀ beim Umschalten des Inputs (da ja alle JOHNS - egal ob
- # Schatten oder Autonom oder der WAHRE JAKOB - die Stateswitch-
- # Routinen aufrufen) abfragen, ob ich auch wirklich derr wahre Jakob bin.
- # Dafⁿr gibt es die neue Funktion thatsreallyme.
- # 21-Jan-2000 bernd Es gibt jetzt die global Variable
- # current_input, mit der ich mir merke, welches Input-Mapping
- # just aktiv ist.
- # 24-jan-2000 bernd Ein paar Meldungen etwas klarer.
- #
- # 27-Jan-2000 bernd Spezielle ESCAPE -Aktion, damit ich Menu und watchown uaf Esc mappen kann
- # 31-Jan-2000 floh aufgeraeumt und fehlende Gamepad Belegung
- # 02-Feb-2000 bernd fast/slow
- # 22-Mrz-2000 bernd Save/Load Levelbau
- # 27-Mrz-2000 bernd Level Loadscreen
- # 13-Jun-2000 bernd DELETE Taste fⁿr LOAD Screen
- # 21-Jun-2000 bernd Falltaste / Reset View Taste umgelegt
- # 23-Jun-2000 bernd SPELL
- # 28-Jun-2000 bernd WATCH FINE SELECTION
- # 30-Jun-2000 floh + Feuer-Taste beim Maennel
- # 18-Jul-00 floh + Gamepad-Feinarbeit (Cancel-Buttons vereinheitlicht)
- # 08-Nov-2000 jeremy + Level Design Input (sl_input)
- # 08-Nov-2000 jeremy + source menu_leveldesign.tcl
- # 07-Mar-2001 bernd CleanUp /
- # 25-May-01 floh + Viewer weiterschalten auf Num0 (shift
- # aktiviert unter Win2k eine "Eingabehilfe"
- # 26-May-01 floh + Main-Input gekillt.
- # 05-Jun-01 floh + auf Joystick-Analog-Input umgestellt
- # 30-Oct-01 floh + Gebaeudekamera abkoppelbar
- # 25-Jan-02 floh + new debug key: f7 -> set maennel booster charges
- # 31-Jan-02 floh + joymouse Support angefangen
- # 19-Feb-02 floh + input_gameend fuer Spieler tot
- # 11-Apr-02 basti + soundeditor auf 'e' gemappt
- # 17-Jun-02 floh + neue mouseinput mappings
- # 20-Jun-02 floh + neue Tastatur/Mouse-Mappings
- #
- # (C) 1999 Bernd Beyreuther
- # (C) COPYRIGHT 2000,2001 RADONLABS GMBH
- #-------------------------------------------------------------------------------
-
- /sys/servers/input.setlongpressedtime 0.75
- set current_input "guimenu_input"
-
- # Mittels einer env-Variablen kann man die Maussteuerung ausschalten
- # (NONEBULAMOUSE == 1)
- set nomouse 0
- catch {set nomouse $env(NONEBULAMOUSE)}
-
- #===============================================================================
- #
- # HELPER ROUTINEN
- #
- #===============================================================================
-
- #-------------------------------------------------------------------------------
- # Mappings, die immer aktiv sein sollten.
- #-------------------------------------------------------------------------------
- proc global_mappings {} {
- .map keyb0:f2.down "script:/sys/servers/menuhandler.showhelpscreen"
- .map keyb0:f2.up "script:/sys/servers/menuhandler.hidehelpscreen"
- .map keyb0:f12.down "script:screenshot"
- .map keyb0:f4.down "script:/sys/servers/console.watch gfx*"
- .map keyb0:f4.up "script:/sys/servers/console.unwatch"
- }
-
- #-------------------------------------------------------------------------------
- # Debug-Mappings
- #-------------------------------------------------------------------------------
- proc devstation_mappings {} {
- global devstation
- if { $devstation } {
- .map keyb0:f5.down "script:finishpart"
- .map keyb0:f6.down "script:switchviewers"
- .map keyb0:f7.down "script:fillboostercharges"
- .map keyb0:f8.down "script:clanenergy"
- .map keyb0:f3.down "script:speedswitch"
- .map keyb0:f11.down "script:/sys/servers/console.toggle"
- .map keyb0:c.down "script:chapterselector"
- .map keyb0:f9.down "script:soundeditor"
- .map keyb0:p.down "script:zeit"
- .map keyb0:t.down "script:zeitlupe"
- .map keyb0:z.down "script:schnell"
- .map keyb0:o.down "script:visualisations"
- .map keyb0:bs.down "script:/sys/servers/comm.showstats"
- .map keyb0:bs.up "script:/sys/servers/comm.hidestats"
- }
- }
-
- #-------------------------------------------------------------------------------
- # normale Move-(Flug-) Mappings
- #-------------------------------------------------------------------------------
- proc move_mappings {} {
-
- # Richtungen
- .map keyb0:left.pressed turn_left
- .map keyb0:right.pressed turn_right
- .map keyb0:up.pressed move_down
- .map keyb0:down.pressed move_up
-
- .map keyb0:a.pressed turn_left
- .map keyb0:d.pressed turn_right
- .map keyb0:w.pressed move_down
- .map keyb0:s.pressed move_up
-
- .map relmouse0:-x mouse_turn_left
- .map relmouse0:+x mouse_turn_right
- .map relmouse0:-y mouse_move_up
- .map relmouse0:+y mouse_move_down
-
- .map joy0:-x turn_left
- .map joy0:+x turn_right
- .map joy0:-y move_down
- .map joy0:+y move_up
-
- .map joy0:-abtn.pressed turn_left
- .map joy0:+abtn.pressed turn_right
- .map joy0:-bbtn.pressed move_down
- .map joy0:+bbtn.pressed move_up
-
- # Gas geben
- .map keyb0:space.pressed move_forward
- .map joy0:btn3.pressed move_forward
- .map relmouse0:btn1.pressed move_forward
-
- # Gas loslassen
- .map keyb0:space.up "script:resetboost"
- .map joy0:btn3.up "script:resetboost"
- .map relmouse0:btn1.up "script:resetboost"
- }
-
- #-------------------------------------------------------------------------------
- # normale Walk-Mappings
- #-------------------------------------------------------------------------------
- proc walk_mappings {} {
-
- # richtungen
- .map keyb0:left.pressed turn_left
- .map keyb0:right.pressed turn_right
- .map keyb0:up.pressed walk_forward
- .map keyb0:down.pressed walk_back
-
- .map keyb0:a.pressed turn_left
- .map keyb0:d.pressed turn_right
- .map keyb0:w.pressed walk_forward
- .map keyb0:s.pressed walk_back
-
- .map joy0:-x turn_left
- .map joy0:+x turn_right
- .map joy0:+y walk_back
- .map joy0:-y walk_forward
-
- .map joy0:-abtn.pressed turn_left
- .map joy0:+abtn.pressed turn_right
- .map joy0:+bbtn.pressed walk_back
- .map joy0:-bbtn.pressed walk_forward
-
- .map relmouse0:-x mouse_turn_left
- .map relmouse0:+x mouse_turn_right
-
- # springen
- .map keyb0:space.pressed move_forward
- .map joy0:btn3.down move_forward
- .map relmouse0:btn1.down move_forward
-
- # Gas loslassen
- .map keyb0:space.up "script:resetboost"
- .map joy0:btn3.up "script:resetboost"
- .map relmouse0:btn1.down "script:resetboost"
-
- # vertical camera freelook
- .map relmouse0:-y mouse_viewer_lookup
- .map relmouse0:+y mouse_viewer_lookdown
- }
-
- #-------------------------------------------------------------------------------
- # Trade Mappings, Mappings fuer Trader, Presse, Storage.
- #-------------------------------------------------------------------------------
- proc trade_mappings {} {
-
- .map keyb0:esc.down menu_cancel
- .map joy0:btn1.down menu_cancel
- .map relmouse0:btn1.down menu_cancel
- .map relmouse0:btn2.down menu_cancel
-
- .map keyb0:return.down menu_select
- .map joy0:btn0.down menu_select
- .map relmouse0:btn0.down menu_select
-
- .map keyb0:shift.down menu_throwaway
- .map joy0:btn3.down menu_throwaway
-
- .map keyb0:down.down menu_back
- .map joy0:+ybtn.down menu_back
- .map joy0:+bbtn.down menu_back
-
- .map keyb0:right.down menu_next
- .map keyb0:d.down menu_next
- .map joy0:+xbtn.down menu_next
- .map joy0:+abtn.down menu_next
- .map relmouse0:-zbtn.down menu_next
-
- .map keyb0:left.down menu_prev
- .map keyb0:a.down menu_prev
- .map joy0:-xbtn.down menu_prev
- .map joy0:-abtn.down menu_prev
- .map relmouse0:+zbtn.down menu_prev
- }
-
- #-------------------------------------------------------------------------------
- # Oeffnet das Ingame-Menue
- #-------------------------------------------------------------------------------
- proc ingame_menu {} {
-
- if {[/sys/servers/menuhandler.creditsshown] == "false"} {
- if {[/world.iscinematicrunning] == "false"} {
- if {[/sys/servers/menuhandler.menuopen] == "false"} {
-
- puts "Open ingame menu."
-
- # open ingame menu
- if {[/world.isnetsession] == "true"} {
- /world.unsethandcontrol
- /sys/servers/menuhandler.openmenu "ingame_multiplayer"
- } else {
- /world.pausegame
- /sys/servers/menuhandler.openmenu "ingame_singleplayer"
- }
- /sys/servers/menuhandler.reset
- }
- } elseif {[/world.iswarpmode] == "false"} {
- puts "Skipping cinematic sequence."
- /world.enterwarpmode
- }
- }
- }
-
- #-------------------------------------------------------------------------------
- # Ueberspringt die cutscene
- #-------------------------------------------------------------------------------
- proc skip_cinematic {} {
- if {[/world.iswarpmode] == "false"} {
- puts "Skipping cinematic sequence."
- /world.enterwarpmode
- }
- }
-
- #-------------------------------------------------------------------------------
- # Oeffnet Menu im Maennel-Stand
- #-------------------------------------------------------------------------------
- proc switchmode_stand {} {
-
- if {[/world.ispaused] == "false"} {
- set me [[/world.getuserclan].getmaennel]
- $me.setmenuopen true
- }
- }
-
- #-------------------------------------------------------------------------------
- # FIXME: dieser ueble HACK sollte durch ein normales Input-Mapping ersetzt
- # werden.
- #
- # Darf nicht ausgefuehrt werden, wenn game paused ist!
- #-------------------------------------------------------------------------------
- proc resetboost {} {
- if {[/world.ispaused] == "false"} {
- set userclan [/world.getuserclan]
- set maennel [$userclan.getmaennel]
- $maennel.setboostpressed false
- }
- }
-
- # --------------------------------------------------------------------------------------
- # Input group: GUI Menu Keys
- # Description: The GUI Menu input mapping
- #
- # DOES NOT MODIFY CURRENT INPUT!!!
- # --------------------------------------------------------------------------------------
- proc guimenu_mappings {} {
-
- # Menu mapping are always active. (see Menu handler)
- .map keyb0:return.up "guimenu_action"
- .map keyb0:esc.down "guimenu_cancel"
- .map keyb0:f1.down "guimenu_cancel"
- .map keyb0:up.down "guimenu_up"
- .map keyb0:down.down "guimenu_down"
- .map keyb0:left.down "guimenu_left"
- .map keyb0:right.down "guimenu_right"
-
- # the gamepads x/y pad (can be analog)
- .map joy0:-xbtn.down "guimenu_left"
- .map joy0:+xbtn.down "guimenu_right"
- .map joy0:-ybtn.down "guimenu_up"
- .map joy0:+ybtn.down "guimenu_down"
-
- .map joy0:-zbtn.down "guimenu_left"
- .map joy0:+zbtn.down "guimenu_right"
- .map joy0:-rbtn.down "guimenu_up"
- .map joy0:+rbtn.down "guimenu_down"
-
- .map joy0:btn0.up "guimenu_action"
- .map joy0:btn2.up "guimenu_cancel"
-
- # these are the digital pad on analog/digital gamepads
- .map joy0:-abtn.down "guimenu_left"
- .map joy0:+abtn.down "guimenu_right"
- .map joy0:-bbtn.down "guimenu_up"
- .map joy0:+bbtn.down "guimenu_down"
- }
-
- #-------------------------------------------------------------------------------
- # Leave a possessed vehicle
- #-------------------------------------------------------------------------------
- proc escape_possessingvehicle {} {
-
- if {[/world.ispaused] != "true"} {
- if {[/world.fastpossessactive] != "false"} {
- set me [[/world.getuserclan].getmaennel]
- if {"null" != $me} {
- set old [psel]
- if {"null" != [/world.getviewercarrier]} {
- sel [/world.getviewercarrier]
- leavevehicle
- sel $old
- }
- $me.setpossessingvehicle false
- }
- }
- }
- }
-
- #-------------------------------------------------------------------------------
- # Leave a possessed building.
- #-------------------------------------------------------------------------------
- proc escape_possessingbuilding {} {
-
- if {[/world.ispaused] != "true"} {
- if {[/world.fastpossessactive] != "false"} {
-
- set old [psel]
- sel [/world.getviewercarrier]
- leavevehicle
- sel $old
-
- set me [[/world.getuserclan].getmaennel]
- $me.setpossessingbuilding false
- }
- }
- }
-
- #-------------------------------------------------------------------------------
- # Escape hit while maennel menu open
- #-------------------------------------------------------------------------------
- proc escape_walkmenu {} {
-
- if {[/world.ispaused] == "false"} {
-
- # close artefact menu. set force cancel flag
- set me [[/world.getuserclan].getmaennel]
- $me.setcancelmenuaction true
-
- # open ingame menu
- ingame_menu
- }
- }
-
- #-------------------------------------------------------------------------------
- # Escape hit while using artefact.
- #-------------------------------------------------------------------------------
- proc escape_useartefactwalk {} {
-
- if {[/world.ispaused] == "false"} {
-
- # cancel build action. if anytime cancel build will end in menu state,
- # also cancel menu action, OTHERWISE NOT!
- set me [[/world.getuserclan].getmaennel]
- $me.setcancelbuildaction true
-
- # open ingame menu
- ingame_menu
- }
- }
-
- #-------------------------------------------------------------------------------
- # Die Kamera-Input-Mappings
- #-------------------------------------------------------------------------------
- proc camera_mappings {} {
-
- .map keyb0:bs.down viewer_cycle
- .map joy0:btn5.down viewer_cycle
-
- # nfreeviewer mappings
- .map keyb0:up.pressed viewer_forward
- .map keyb0:w.pressed viewer_forward
- .map keyb0:down.pressed viewer_backward
- .map keyb0:s.pressed viewer_backward
- .map keyb0:left.pressed viewer_strafeleft
- .map keyb0:a.pressed viewer_strafeleft
- .map keyb0:right.pressed viewer_straferight
- .map keyb0:d.pressed viewer_straferight
- .map keyb0:space.down viewer_reset
- .map relmouse0:-x viewer_left
- .map relmouse0:+x viewer_right
- .map relmouse0:+y viewer_down
- .map relmouse0:-y viewer_up
- .map relmouse0:btn0.pressed viewer_backward
- .map relmouse0:btn1.pressed viewer_forward
-
- .map joy0:btn0.pressed viewer_forward
- .map joy0:btn1.pressed viewer_backward
-
- .map joy0:-x viewer_left
- .map joy0:+x viewer_right
- .map joy0:+y viewer_down
- .map joy0:-y viewer_up
-
- # free look mappings
- .map joy0:-z viewer_lookleft
- .map joy0:+z viewer_lookright
- .map joy0:-r viewer_lookup
- .map joy0:+r viewer_lookdown
-
- .map keyb0:j.pressed viewer_lookleft
- .map keyb0:l.pressed viewer_lookright
- .map keyb0:i.pressed viewer_lookup
- .map keyb0:k.pressed viewer_lookdown
- }
-
-
-
- #==========================================================================
- #
- # HIER DIE INPUT MAPPINGS
- #
- #==========================================================================
-
- #--------------------------------------------------------------------------
- # Initiales Input-Mapping beim Spielstart
- #
- # *** ACHTUNG ***
- #
- # NICHT DIE DEVSTATION MAPPINGS EINFACH HIER REIN!
- #--------------------------------------------------------------------------
- proc input_guimenu {} {
- set cwd [psel]
- sel /sys/servers/input
- .beginmap
- guimenu_mappings
- camera_mappings
- global_mappings
- .endmap
- sel $cwd
- }
-
- #--------------------------------------------------------------------------
- # Mapping waehrend cinematic
- #--------------------------------------------------------------------------
- proc input_cutscene {} {
- set cwd [psel]
- sel /sys/servers/input
- .beginmap
- .map keyb0:esc.down "script:skip_cinematic"
- .map joy0:btn5.down "script:skip_cinematic"
- .endmap
- sel $cwd
- }
-
- #--------------------------------------------------------------------------
- # GAMEEND: Spieler bzw sein Lighthouse ist tot. Auf Tastendruck wird
- # die 'loadsavepoint' Routine aus der 'scriptlib.tcl' aufgerufen
- #--------------------------------------------------------------------------
- proc input_gameend {} {
-
- set cwd [psel]
- sel /sys/servers/input
- .beginmap
-
- # FIXME: global_mappings enthaelt Esc->Open Ingame Menu, deshalb auskommentiert
- # global_mappings
- devstation_mappings
- guimenu_mappings
- .endmap
- sel ..
-
- }
-
- #--------------------------------------------------------------------------
- # NORMAL: John fliegt herum
- #--------------------------------------------------------------------------
- proc input_normal {} {
-
- set cwd [psel]
- sel /sys/servers/input
- .beginmap
-
- global_mappings
- devstation_mappings
- move_mappings
- camera_mappings
- guimenu_mappings
-
- .map keyb0:f1.down "script:ingame_menu"
- .map joy0:btn2.down "script:ingame_menu"
-
- .endmap
- sel $cwd
- }
-
- #-------------------------------------------------------------------------------
- # LANDEN Uebergangs-Zustand
- #-------------------------------------------------------------------------------
- proc input_landen {} {
- set cwd [psel]
- sel /sys/servers/input
- .beginmap
- global_mappings
- devstation_mappings
- walk_mappings
- guimenu_mappings
-
- .map keyb0:f1.down "script:ingame_menu"
- .map joy0:btn2.down "script:ingame_menu"
-
- .endmap
- sel $cwd
- }
-
- #-------------------------------------------------------------------------------
- # LANDEN2 sanfterer Landezustand
- #-------------------------------------------------------------------------------
- proc input_landen2 {} {
-
- set cwd [psel]
- sel /sys/servers/input
- .beginmap
- global_mappings
- devstation_mappings
- walk_mappings
- guimenu_mappings
-
- .map keyb0:f1.down "script:ingame_menu"
- .map joy0:btn2.down "script:ingame_menu"
-
- .endmap
- sel $cwd
- }
-
- #-------------------------------------------------------------------------------
- # SWIMMING einfach in der Luft rumhaengen
- #-------------------------------------------------------------------------------
- proc input_swimming {} {
-
- set cwd [psel]
- sel /sys/servers/input
- .beginmap
-
- global_mappings
- devstation_mappings
- move_mappings
- camera_mappings
- guimenu_mappings
-
- .map keyb0:f1.down "script:ingame_menu"
- .map joy0:btn2.down "script:ingame_menu"
-
- # johnfall(stop) ueberlagern
- .map keyb0:down.down "script:johnfall"
- .map keyb0:down.up "script:johnfallstop"
- .map joy0:+ybtn.down "script:johnfall"
- .map joy0:+ybtn.up "script:johnfallstop"
- .map joy0:+bbtn.down "script:johnfall"
- .map joy0:+bbtn.up "script:johnfallstop"
-
- .endmap
- sel $cwd
- }
-
- #-------------------------------------------------------------------------------
- # RUN Input beim Rennen (Stehen ist extra!)
- #-------------------------------------------------------------------------------
- proc input_run {} {
-
- set cwd [psel]
- sel /sys/servers/input
- .beginmap
-
- global_mappings
- devstation_mappings
- walk_mappings
- camera_mappings
- guimenu_mappings
-
- .map keyb0:f1.down "script:ingame_menu"
- .map joy0:btn2.down "script:ingame_menu"
-
- .map keyb0:ctrl.down firespell
- .map joy0:btn4.down firespell
- .map relmouse0:btn2.down firespell
-
- .map keyb0:tab.down "script:cycle_airplanes"
- .map joy0:btn6.down "script:cycle_airplanes"
- .map joy0:btn8.down "script:cycle_airplanes"
-
- .endmap
- sel $cwd
-
- }
-
- #-------------------------------------------------------------------------------
- # RUNSTOP Uebergangs-Zustand
- #-------------------------------------------------------------------------------
- proc input_runstop {} {
-
- set cwd [psel]
- sel /sys/servers/input
- .beginmap
- global_mappings
- devstation_mappings
- guimenu_mappings
-
- .map keyb0:f1.down "script:ingame_menu"
- .map joy0:btn2.down "script:ingame_menu"
-
- # braucht's zum uebergang
- walk_mappings
-
- .map keyb0:tab.down "script:cycle_airplanes"
- .map joy0:btn6.down "script:cycle_airplanes"
- .map joy0:btn8.down "script:cycle_airplanes"
-
- .endmap
- sel $cwd
- }
-
- #-------------------------------------------------------------------------------
- # input im stehen
- #-------------------------------------------------------------------------------
- proc input_stand {} {
-
- set cwd [psel]
- sel /sys/servers/input
- .beginmap
-
- global_mappings
- devstation_mappings
- walk_mappings
- camera_mappings
- guimenu_mappings
-
- .map keyb0:f1.down "script:ingame_menu"
- .map joy0:btn2.down "script:ingame_menu"
-
- .map keyb0:ctrl.down firespell
- .map joy0:btn4.down firespell
- .map relmouse0:btn2.down firespell
-
- .map joy0:btn0.down "script:switchmode_stand"
- .map keyb0:return.down "script:switchmode_stand"
- .map relmouse0:btn0.down "script:switchmode_stand"
-
- .map keyb0:tab.down "script:cycle_airplanes"
- .map joy0:btn6.down "script:cycle_airplanes"
- .map joy0:btn8.down "script:cycle_airplanes"
-
- .endmap
- sel $cwd
-
- }
-
- #-------------------------------------------------------------------------------
- # POSSESS
- #-------------------------------------------------------------------------------
- proc input_possess {} {
-
- set cwd [psel]
- sel /sys/servers/input
- .beginmap
-
- global_mappings
- devstation_mappings
- camera_mappings
- guimenu_mappings
-
- .map keyb0:f1.down "script:ingame_menu"
- .map joy0:btn2.down "script:ingame_menu"
-
- .map keyb0:return.down menu_select
- .map joy0:btn0.down menu_select
- .map relmouse0:btn0.down menu_select
-
- .map keyb0:esc.down menu_cancel
- .map joy0:btn1.down menu_cancel
- .map relmouse0:btn1.down menu_cancel
- .map relmouse0:btn2.down menu_cancel
-
- .map keyb0:right.down menu_next
- .map keyb0:d.down menu_next
- .map joy0:+abtn.down menu_next
- .map joy0:+xbtn.down menu_next
- .map relmouse0:-zbtn.down menu_next
-
- .map keyb0:left.down menu_prev
- .map keyb0:a.down menu_prev
- .map joy0:-abtn.down menu_prev
- .map joy0:-xbtn.down menu_prev
- .map relmouse0:+zbtn.down menu_prev
-
- .endmap
- sel $cwd
-
- }
-
- #-------------------------------------------------------------------------------
- # POSSESSINGVEHICLE Steuern eines vehicles
- #-------------------------------------------------------------------------------
- proc input_possessingvehicle {} {
-
- /game/handler/feedback.registertakencontrol
- set cwd [psel]
- sel /sys/servers/input
- .beginmap
-
- global_mappings
- devstation_mappings
- move_mappings
- camera_mappings
- guimenu_mappings
-
- .map keyb0:f1.down "script:ingame_menu"
- .map joy0:btn2.down "script:ingame_menu"
-
- .map keyb0:ctrl.pressed fire
- .map keyb0:ctrl.up firestop
- .map joy0:btn0.pressed fire
- .map joy0:btn0.up firestop
- .map relmouse0:btn0.pressed fire
- .map relmouse0:btn0.up firestop
-
- .map keyb0:esc.down "script:escape_possessingvehicle"
- .map joy0:btn1.down "script:escape_possessingvehicle"
- .map relmouse0:btn2.down "script:escape_possessingvehicle"
-
- .map keyb0:space.double turbomove_forward
- .map joy0:btn3.double turbomove_forward
- .map relmouse0:btn1.double turbomove_forward
-
- .map keyb0:tab.down "script:cycle_airplanes"
- .map joy0:btn6.down "script:cycle_airplanes"
- .map joy0:btn8.down "script:cycle_airplanes"
-
- .endmap
- sel $cwd
- }
-
- #-------------------------------------------------------------------------------
- # POSSESSINGBUILDING Steuern eines Gebaeudes
- #-------------------------------------------------------------------------------
- proc input_possessingbuilding {} {
-
- /game/handler/feedback.registertakencontrol
- set cwd [psel]
- sel /sys/servers/input
- .beginmap
-
- global_mappings
- devstation_mappings
- move_mappings
- guimenu_mappings
-
- .map keyb0:f1.down "script:ingame_menu"
- .map joy0:btn2.down "script:ingame_menu"
-
- .map keyb0:ctrl.pressed fire
- .map keyb0:ctrl.up firestop
- .map joy0:btn0.pressed fire
- .map joy0:btn0.up firestop
- .map relmouse0:btn0.pressed fire
- .map relmouse0:btn0.up firestop
-
- # hoffe mal, das klappt mit getrennt up, down und pressed
- .map keyb0:return.down island_toggle
- .map joy0:btn0.down island_toggle
- .map relmouse0:btn0.down island_toggle
-
- .map keyb0:esc.down "script:escape_possessingbuilding"
- .map joy0:btn1.down "script:escape_possessingbuilding"
- .map relmouse0:btn1.down "script:escape_possessingbuilding"
- .map relmouse0:btn2.down "script:escape_possessingbuilding"
-
- .map keyb0:right.down searchisland_right
- .map keyb0:d.down searchisland_right
- .map joy0:+xbtn.down searchisland_right
- .map joy0:+abtn.down searchisland_right
- .map relmouse0:-zbtn.down searchisland_right
-
- .map keyb0:left.down searchisland_left
- .map keyb0:a.down searchisland_left
- .map joy0:-xbtn.down searchisland_left
- .map joy0:-abtn.down searchisland_left
- .map relmouse0:+zbtn.down searchisland_left
-
- .map keyb0:tab.down "script:cycle_airplanes"
- .map joy0:btn6.down "script:cycle_airplanes"
- .map joy0:btn8.down "script:cycle_airplanes"
-
- .endmap
- sel $cwd
- }
-
- #-------------------------------------------------------------------------------
- # WALKMENU Menue offen und muss gesteuert werden
- #-------------------------------------------------------------------------------
- proc input_walkmenu {} {
-
- #/world.storeinputmapping input_walkmenu
- set cwd [psel]
- sel /sys/servers/input
- .beginmap
-
- global_mappings
- devstation_mappings
- guimenu_mappings
-
- .map keyb0:f1.down "script:ingame_menu"
- .map joy0:btn2.down "script:ingame_menu"
-
- .map keyb0:f1.down escape_walkmenu
- .map joy0:btn5.down escape_walkmenu
-
- .map keyb0:esc.down menu_cancel
- .map joy0:btn1.down menu_cancel
- .map relmouse0:btn1.down menu_cancel
- .map relmouse0:btn2.down menu_cancel
-
- .map keyb0:return.down menu_select
- .map joy0:btn0.down menu_select
- .map relmouse0:btn0.down menu_select
-
- .map keyb0:delete.down menu_throwaway
- .map keyb0:shift.down menu_throwaway
- .map joy0:btn3.down menu_throwaway
-
- .map keyb0:right.down menu_next
- .map keyb0:d.down menu_next
- .map joy0:+xbtn.down menu_next
- .map joy0:+abtn.down menu_next
- .map relmouse0:-zbtn.down menu_next
-
- .map keyb0:left.down menu_prev
- .map keyb0:a.down menu_prev
- .map joy0:-xbtn.down menu_prev
- .map joy0:-abtn.down menu_prev
- .map relmouse0:+zbtn.down menu_prev
-
- .endmap
- sel $cwd
- }
-
- #-------------------------------------------------------------------------------
- # USEARTEFACTWALK
- #-------------------------------------------------------------------------------
- proc input_useartefactwalk {} {
-
- set cwd [psel]
- sel /sys/servers/input
- .beginmap
-
- global_mappings
- devstation_mappings
- camera_mappings
- guimenu_mappings
-
- .map keyb0:f1.down "script:ingame_menu"
- .map joy0:btn2.down "script:ingame_menu"
-
- .map keyb0:f1.down script:escape_useartefactwalk
- .map joy0:btn5.down script:escape_useartefactwalk
-
- .map keyb0:esc.down menu_cancel
- .map joy0:btn1.down menu_cancel
- .map relmouse0:btn1.down menu_cancel
- .map relmouse0:btn2.down menu_cancel
-
- .map keyb0:return.down menu_select
- .map joy0:btn0.down menu_select
- .map relmouse0:btn0.down menu_select
-
- .map keyb0:right.down turn_right
- .map keyb0:d.down turn_right
- .map joy0:+xbtn.down turn_right
- .map joy0:+abtn.down turn_right
- .map relmouse0:-zbtn.down turn_right
-
- .map keyb0:left.down turn_left
- .map keyb0:a.down turn_left
- .map joy0:-xbtn.down turn_left
- .map joy0:-abtn.down turn_left
- .map relmouse0:+zbtn.down turn_left
-
- .endmap
- sel $cwd
- }
-
- #-------------------------------------------------------------------------------
- # CREATEBUILDINGWALK
- #-------------------------------------------------------------------------------
- proc input_createbuildingwalk {} {
-
- set cwd [psel]
- sel /sys/servers/input
- .beginmap
- global_mappings
- devstation_mappings
- guimenu_mappings
-
- .map keyb0:f1.down "script:ingame_menu"
- .map joy0:btn2.down "script:ingame_menu"
-
- .endmap
- sel $cwd
- }
-
- #-------------------------------------------------------------------------------
- # TRADEMENUWALK
- #-------------------------------------------------------------------------------
- proc input_trademenuwalk {} {
-
- set cwd [psel]
- sel /sys/servers/input
- .beginmap
-
- global_mappings
- devstation_mappings
- guimenu_mappings
- trade_mappings
-
- .map keyb0:f1.down "script:ingame_menu"
- .map joy0:btn2.down "script:ingame_menu"
-
- .endmap
- sel $cwd
- }
-
- #-------------------------------------------------------------------------------
- # STORAGEMENUWALK
- #-------------------------------------------------------------------------------
- proc input_storagemenuwalk {} {
- set cwd [psel]
- sel /sys/servers/input
- .beginmap
-
- global_mappings
- devstation_mappings
- guimenu_mappings
- trade_mappings
-
- .map keyb0:f1.down "script:ingame_menu"
- .map joy0:btn2.down "script:ingame_menu"
-
- .endmap
- sel $cwd
- }
-
- #-------------------------------------------------------------------------------
- # TRANSFORMMENUWALK
- #-------------------------------------------------------------------------------
- proc input_transformmenuwalk {} {
- set cwd [psel]
- sel /sys/servers/input
- .beginmap
-
- global_mappings
- devstation_mappings
- guimenu_mappings
- trade_mappings
-
- .map keyb0:f1.down "script:ingame_menu"
- .map joy0:btn2.down "script:ingame_menu"
-
- .endmap
- sel $cwd
- }
-
- #-------------------------------------------------------------------------------
- # CRASH
- #-------------------------------------------------------------------------------
- proc input_crash {} {
- set cwd [psel]
- sel /sys/servers/input
- .beginmap
- global_mappings
- devstation_mappings
- guimenu_mappings
-
- .map keyb0:f1.down "script:ingame_menu"
- .map joy0:btn2.down "script:ingame_menu"
-
- # fuer "Weiterfliegen"
- move_mappings
-
- .endmap
- sel $cwd
- }
-
- #-------------------------------------------------------------------------------
- # TUTORIALSTART
- #-------------------------------------------------------------------------------
- proc input_tutorialstart {} {
- set cwd [psel]
- sel /sys/servers/input
- .beginmap
- global_mappings
- devstation_mappings
- .endmap
- sel $cwd
- }
-
- #-------------------------------------------------------------------------------
- # TURBO
- #-------------------------------------------------------------------------------
- proc input_turbo {} {
- set cwd [psel]
- sel /sys/servers/input
- .beginmap
- global_mappings
- devstation_mappings
- guimenu_mappings
-
- .map keyb0:f1.down "script:ingame_menu"
- .map joy0:btn2.down "script:ingame_menu"
-
- .map keyb0:ctrl.up "script:resetboost"
- .map joy0:btn3.up "script:resetboost"
-
- .endmap
- sel $cwd
- }
-
- #-------------------------------------------------------------------------------
- # JUMP from run
- #-------------------------------------------------------------------------------
- proc input_jumprun {} {
- set cwd [psel]
- sel /sys/servers/input
- .beginmap
- global_mappings
- devstation_mappings
- guimenu_mappings
-
- .map keyb0:f1.down "script:ingame_menu"
- .map joy0:btn2.down "script:ingame_menu"
-
- # walkmappings fuers weiterlaufen
- walk_mappings
- .map joy0:btn3.pressed move_forward
- .map relmouse0:btn1.pressed move_forward
-
- .endmap
- sel $cwd
- }
-
- #-------------------------------------------------------------------------------
- # JUMP from stand
- #-------------------------------------------------------------------------------
- proc input_jumpstand {} {
- set cwd [psel]
- sel /sys/servers/input
- .beginmap
- global_mappings
- devstation_mappings
- guimenu_mappings
-
- .map keyb0:f1.down "script:ingame_menu"
- .map joy0:btn2.down "script:ingame_menu"
-
- # fuers weiterlaufen
- walk_mappings
- .map joy0:btn3.pressed move_forward
- .map relmouse0:btn1.pressed move_forward
-
- .endmap
- sel $cwd
- }
-
- #-------------------------------------------------------------------------------
- # FALLING
- #-------------------------------------------------------------------------------
- proc input_falling {} {
- set cwd [psel]
- sel /sys/servers/input
- .beginmap
- global_mappings
- devstation_mappings
- guimenu_mappings
-
- .map keyb0:f1.down "script:ingame_menu"
- .map joy0:btn2.down "script:ingame_menu"
-
- # fuers weiterlaufen
- walk_mappings
-
- .endmap
- sel $cwd
- }
-
- #-------------------------------------------------------------------------------
- # CINEMATIC
- #-------------------------------------------------------------------------------
- proc input_cinematic {} {
- set cwd [psel]
- sel /sys/servers/input
- .beginmap
- global_mappings
- devstation_mappings
- camera_mappings
- guimenu_mappings
- .endmap
- sel $cwd
- }
-
- # ---
- # EOF
-